package com.soft.service.impl;

import com.soft.dao.EmpDao;
import com.soft.dao.impl.EmpDaoImpl;
import com.soft.pojo.Emp;
import com.soft.service.EmpService;

import java.util.List;

public class EmpServiceImpl implements EmpService {
    private EmpDao empDao = new EmpDaoImpl();
    public List<Emp> searchByEname(String ename) {
        return empDao.searchByEname(ename);
    }

    @Override
    public int deleteEmp(int empno) {
        return empDao.deleteEmp(empno);
    }

    @Override
    public void insertEmp(Emp emp) {
        empDao.insertEmp(emp);
    }

    @Override
    public void updateEmp(Emp emp) {

        empDao.updateEmp(emp);
    }
}
